package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zyg
 * @version 1.0.0
 * <p>
 * class description goes here
 * descritpion:
 * @date 2025/7/28 11:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_order")
public class SysOrder {
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;
    @NotNull
    private String orderName;

    @TableField(exist = false)
    private List<SysProduct> products;

}
